package cn.zhentao.charge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.zhentao.charge.mapper.ChargeInvestorDetailMapper;
import cn.zhentao.charge.domain.ChargeInvestorDetail;
import cn.zhentao.charge.service.IChargeInvestorDetailService;

/**
 * 投资人详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
@Service
public class ChargeInvestorDetailServiceImpl implements IChargeInvestorDetailService 
{
    @Autowired
    private ChargeInvestorDetailMapper chargeInvestorDetailMapper;

    /**
     * 查询投资人详情
     * 
     * @param id 投资人详情主键
     * @return 投资人详情
     */
    @Override
    public ChargeInvestorDetail selectChargeInvestorDetailById(Long id)
    {
        return chargeInvestorDetailMapper.selectChargeInvestorDetailById(id);
    }

    /**
     * 查询投资人详情列表
     * 
     * @param chargeInvestorDetail 投资人详情
     * @return 投资人详情
     */
    @Override
    public List<ChargeInvestorDetail> selectChargeInvestorDetailList(ChargeInvestorDetail chargeInvestorDetail)
    {
        return chargeInvestorDetailMapper.selectChargeInvestorDetailList(chargeInvestorDetail);
    }

    /**
     * 新增投资人详情
     * 
     * @param chargeInvestorDetail 投资人详情
     * @return 结果
     */
    @Override
    public int insertChargeInvestorDetail(ChargeInvestorDetail chargeInvestorDetail)
    {
        return chargeInvestorDetailMapper.insertChargeInvestorDetail(chargeInvestorDetail);
    }

    /**
     * 修改投资人详情
     * 
     * @param chargeInvestorDetail 投资人详情
     * @return 结果
     */
    @Override
    public int updateChargeInvestorDetail(ChargeInvestorDetail chargeInvestorDetail)
    {
        return chargeInvestorDetailMapper.updateChargeInvestorDetail(chargeInvestorDetail);
    }

    /**
     * 批量删除投资人详情
     * 
     * @param ids 需要删除的投资人详情主键
     * @return 结果
     */
    @Override
    public int deleteChargeInvestorDetailByIds(Long[] ids)
    {
        return chargeInvestorDetailMapper.deleteChargeInvestorDetailByIds(ids);
    }

    /**
     * 删除投资人详情信息
     * 
     * @param id 投资人详情主键
     * @return 结果
     */
    @Override
    public int deleteChargeInvestorDetailById(Long id)
    {
        return chargeInvestorDetailMapper.deleteChargeInvestorDetailById(id);
    }
}
